.product-detail-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 80px;
  margin-bottom: 20px;
}

.product-detail-header {
  position: fixed;
  top: 0;

  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.header-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-images-section {
  position: relative;
  background: white;
  margin-top: 56px;
}

.product-image-slide {
  position: relative;
}

.product-detail-image {
  width: 100%;
  height: 375px;
  object-fit: cover;
}

.image-indicator {
  position: absolute;
  bottom: 60px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.image-thumbnails {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.thumbnail-item.active {
  border-color: #ff4500;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-mask {
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.product-info-section {
  background: white;
  padding: 16px;
  margin-bottom: 8px;
}

.price-section {
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.current-price {
  font-size: 24px;
  font-weight: bold;
  color: #ff4500;
  margin-right: 12px;
}

.original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

.price-tags {
  display: flex;
  gap: 8px;
}

.discount-tag {
  font-size: 12px;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-tag {
  margin: 0;
}

.coupon-text {
  font-size: 14px;
  color: #ff4500;
}

.title-section {
  margin-bottom: 12px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: #333;
}

.product-subtitle {
  font-size: 14px;
  color: #666;
}

.stats-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sales-text {
  font-size: 12px;
  color: #999;
}

.rating-section {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-text {
  font-size: 12px;
  color: #666;
}

.delivery-section {
  background: white;
  padding: 0px 16px 0px 16px;
  margin-bottom: 0px;
}

.delivery-info {
  padding: 10px 16px 10px 16px;
  margin-bottom: 0px;
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-icon {
  color: #52c41a;
  font-size: 18px;
}

.delivery-main {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.delivery-detail {
  font-size: 12px;
  color: #666;
}

.guarantee-section {
  background: white;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.guarantee-icon {
  color: #52c41a;
}

.stock-status {
  color: #52c41a;
  font-weight: 500;
}

.specs-section {
  background: white;
  padding: 16px;
  margin-bottom: 8px;
}

.spec-group {
  margin-bottom: 16px;
}

.spec-group:last-child {
  margin-bottom: 0;
}

.spec-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
}

.spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-option {
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.spec-option.active {
  border-color: #ff4500;
  background: #fff2e8;
  color: #ff4500;
}

.spec-price-diff {
  font-size: 12px;
  color: #666;
}

.product-description-section {
  background: white;
  padding: 16px;
  margin-bottom: 8px;
}

.description-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
}

.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.product-bottom-actions {
  position: fixed;
  bottom: 0;
  background: white;
  padding: 12px 16px;
  padding-bottom: 100px;
  border-top: 1px solid #f0f0f0;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}

.bottom-action-left {
  display: flex;
  gap: 16px;
}

.action-item {
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.action-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.action-text {
  font-size: 10px;
  color: #666;
}

.bottom-action-right {
  flex: 1;
  display: flex;
  gap: 8px;
  padding-top: 25px;
}


.add-cart-btn {
  height: 44px;
  flex: 1;
  border-radius: 22px;
  background: #ffa940;
  border-color: #ffa940;
  color: white;
  font-weight: 500;
}

.add-cart-btn:hover {
  background: #ff9c00;
  border-color: #ff9c00;
}

.buy-now-btn {
  height: 44px;
  flex: 1;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  font-weight: 500;
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
}

/* 规格选择弹窗样式 */
.product-spec-modal .ant-modal-content {
  border-radius: 16px;
}

.spec-modal-content {
  padding: 16px 0;
}

.modal-product-info {
  display: flex;
  gap: 12px;
  margin-bottom: 0px;
  padding: 0 16px;
  border-bottom: none !important;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.modal-product-details {
  flex: 1;
}

.modal-price {
  font-size: 20px;
  font-weight: bold;
  color: #ff4500;
  margin-bottom: 4px;
}

.modal-stock {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.modal-selected-specs {
  font-size: 12px;
  color: #999;
}

.modal-spec-group {
  margin-bottom: 20px;
  padding: 0 16px;
}

.spec-group-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #333;
}

.spec-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.spec-option-item {
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.spec-option-item.selected {
  border-color: #ff4500;
  background: #fff2e8;
  color: #ff4500;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 16px;
}

.quantity-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-input {
  width: 60px;
  text-align: center;
}

.modal-confirm-btn {
  margin: 0px !important;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
}

.product-detail-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff4500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.product-detail-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
} 
